<?php require 'src/View/adminhead.php';?>
		
        <div style="width:1200px; margin:0 auto;">
		<h2 >
            文章列表
        </h2>
            <a href="index.php?c=admin&a=addart">添加</a><br>
            <?php if($artlist) {foreach ($artlist as $value){ ?>
            标题：<?php echo  $value['title'] ?> 发布人：<?php echo  $value['author'] ?> 分类 <?php if($value['artc']==1){echo "官方公告";}elseif($value['artc']==2){echo "新手教程";}elseif($value['artc']==3){echo "刷单技巧";} ?> 时间:<?php echo  $value['data'] ?>  操作<a href="index.php?c=admin&a=updateart&id=<?php echo  $value['art_id'] ?>">编辑</a> <a href="index.php?c=admin&a=delart&id=<?php echo  $value['art_id'] ?>">删除</a> <a href="index.php?c=index&a=read&id=<?php echo  $value['art_id'] ?>" target="_blank">查看</a> <br> 
            <?php }}else{ ?>
                没有文章
            <?php } ?>
			</div>
			
			
			
        
    </body>  
    <script src="web/js/jquery-2.1.1.min.js"></script>
    <script src="web/js/bootstrap-3.2.0.min.js"></script>
</html>